x86/AMD-Vi: Fix IVRS HPET special->handle override
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Mon, 30 Sep 2013 12:00:44 +0000 (14:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 30 Sep 2013 12:00:44 +0000 (14:00 +0200)
commit0a6b415d5212af68249ddf41a20dfc3998c8d670
tree8a7a3622abf816ce766078936b4ef021c3cf4844
parent93be8285a79c6cbbf66c8681fec1d1bfb71d84cc
x86/AMD-Vi: Fix IVRS HPET special->handle override

The current logic does not handle the case when HPET special->handle
is invalid in IVRS. On such system, the following message is shown:

(XEN) AMD-Vi: Failed to setup HPET MSI remapping: Wrong HPET

This patch will allow the ivrs_hpet[<handle>]=<sbdf> to override the
IVRS.  Also, it removes struct hpet_sbdf.iommu since it is not
used anywhere in the code.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
xen/drivers/passthrough/amd/iommu_acpi.c
xen/drivers/passthrough/amd/iommu_intr.c
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h